package de.tabuma.wsdl2xform.xform.view;

import de.tabuma.lib.tabumaview;
import de.tabuma.wsdl2xform.xform.*;
import java.io.*;
import java.util.*;
import java.util.logging.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
 *
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 01:10:56 $
 */
public class projectPage1 extends tabumaview {

    private static Logger log = Logger.getLogger(projectPage1.class.getName());

    public projectPage1(String servlet, Hashtable parameter) {
        super(servlet, parameter);
    }
    
    public void processRequest(ServletContext context, HttpServletRequest request, HttpServletResponse response, PrintWriter out) {

        try {
            out.println("<div class=\"contentHeader\">"+constants.getValue("xform.header")+"</div>");
            out.println("<div class=\"contentContent\">");

            out.println("<p class=\"contentContentHeader\">"+constants.getValue("xform.step1")+"</p>");

            out.println("<form action=\""+de.tabuma.wsdl2xform.controller.constants.SERVLET_NAME+"\">");
            out.println("<input type=\"hidden\" name=\""+de.tabuma.wsdl2xform.controller.constants.MAINNAV+"\" value=\""+de.tabuma.wsdl2xform.controller.constants.NAVID_CREATEXFORM+"\"/>");
            out.println("<input type=\"hidden\" name=\""+constants.XFORM_NAV+"\" value=\""+constants.NAV_FIRST_STEP+"\"/>");
            out.println("<input type=\"hidden\" name=\""+constants.NAV_NEXT_STEP+"\" value=\"true\"/>");

            out.println("Projectname:");
            out.println("<input type=\"text\" name=\""+constants.PROJECT_NAME+"\" value=\"\"/>");
            out.println("<br/>");
            out.println("Description:");
            out.println("<textarea name=\""+constants.PROJECT_DESCRIPTION+"\"></textarea>");
            out.println("<br/>");
            out.println("WSDL Url");
            out.println("<input type=\"text\" name=\""+constants.WSDL_URL+"\" value=\"\"/>");
            out.println("<br/>");
            out.println("<input type=\"submit\" value=\"Next Step\" class=\"loginbutton\"/>");
            out.println("<br/>");

            out.println("</form>");

            out.println("</div>");
        }
        catch(Exception e) {
            log.warning(e.getMessage());
        }
        
    }

}
